package com.huluobo.high3demo.demo;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.huluobo.mvvm.baen.UserBeanResult;

/**
 * Created by LC on 2023/9/14.
 */
public class LoginDemoViewModel extends ViewModel {
    MutableLiveData<UserBeanResult.UserBean> success=new MutableLiveData<>();
    MutableLiveData<String> failed=new MutableLiveData<>();

    LoginDemoRepo loginDemoRepo = new LoginDemoRepo();

    public void login(String username, String password) {
        loginDemoRepo.login(username, password, success, failed);
    }

}
